import request from "@/utils/request.ts";

enum API {
  // 获取性别比例
  GENDERNUMBER_API = '/api/gender/count',

  // 获取分类数量
  CATEGORYNUMBER_API = '/api/article/category/count',

  // 获取一月文章发布量
  MOUTHNUMBER_API = '/api//article/mouth/count',
}

// 获取性别数量
export const getGenderNumberAPI = () => request({
  method: 'GET',
  url: API.GENDERNUMBER_API
})

// 获取分类数量
export const getCategoryNumberAPI = () => request({
  method: 'GET',
  url: API.CATEGORYNUMBER_API
})

// 获取一月文章发布量
export const getMouthNumberAPI = () => request({
  method: 'GET',
  url: API.MOUTHNUMBER_API
})
